package Java;

public class test29 {
    public static void main(String[] args) {
        test29 user = new test29("935044545","123456","cym");
        System.out.println(user.getMima());
        System.out.println(user.getYonghuming());
        System.out.println(user.getZhanghao());
        user.xinxi();
    }
    private String zhanghao;
    private  String mima;
    private String yonghuming;

    public test29(String zhanghao, String mima, String yonghuming) {
        this.zhanghao = zhanghao;
        this.mima = mima;
        this.yonghuming = yonghuming;
    }
    public String getZhanghao() {
        return zhanghao;
    }
    public void setZhanghao(String zhanghao) {
        this.zhanghao = zhanghao;
    }
    public String getMima() {
        return mima;
    }
    public void setMima(String mima) {
        this.mima = mima;
    }
    public String getYonghuming() {
        return yonghuming;
    }
    public void setYonghuming(String yonghuming) {
        this.yonghuming = yonghuming;
    }
    public    void  xinxi(){
        System.out.println("我的用户名是："+getYonghuming()+"，我的账号是："+getZhanghao()+"我的密码是："+getMima());
    }
}
